-
Notifications
You must be signed in to change notification settings - Fork 12
feat: wallet coins filter #3117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| if (!tokenizedCommunityTokenTypeExists) { | ||
| await m.addColumn( | ||
| schema.coinsTable, | ||
| schema.coinsTable.tokenizedCommunityTokenType, | ||
| ); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we write migration script to set token type for exist rows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we haven't released the issue no user in prod has tokens, so no need to migrate yet. Also coin sync happens once a day, so it will overwrite the values
| SelectNetworkToReceiveNftRoute().push<void>(ref.context); | ||
| case WalletTabType.coins: | ||
| ReceiveCoinRoute().push<void>(context); | ||
| case WalletTabType.creatorTokens: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh, we need to delete this page, so, then it's much easier here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Balance page? I think we are using it
332922a to
420b915
Compare
420b915 to
0f0fad9
Compare
0f0fad9 to
edf4fea
Compare
| if (selectedFilter == TokenTypeFilter.all) { | ||
| return true; | ||
| } | ||
| return group.coins.any((coinInWallet) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.any inside .where can be O(n^2) in worst case, it's better to avoid logic like that inside Widget.build methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was like this before my changes
final filteredGroups = groups?.where((group) {
return group.coins.any((coin) => coin.coin.isCreatorToken == isCreatorTokensTab);
we have only few coins per group, mostly one coin. I don't think it would be an issue here
41ebc5c to
b8a2983
Compare
b8a2983 to
72cdcb0
Compare
Description
Additional Notes
wallet token filter
Task ID
ION-5043
Type of Change
Screenshots (if applicable)
RPReplay_Final1768497332.MP4